//
//  CAIImagePickerManagerErrorConst.h
//  CAIImagePickerControllerKit
//
//  Created by 海参 on 2022/7/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, ImagePickerControllerErrorCode)
{
    ImagePickerControllerErrorCodeNOError = 0,
    /// 没有相机权限
    ImagePickerControllerErrorCodeNOCameraAuthorization = 1101,
    /// 没有相册权限；
    ImagePickerControllerErrorCodeNOPhotoLibraryAuthorization= 1102,
    /// 取消操作
    ImagePickerControllerErrorCodeCancel = 1103,
    /// 相机异常:2022.08.01 新增
    ImagePickerControllerErrorCodeCameraError = 1104,
};


@interface CAIImagePickerManagerErrorConst : NSObject


/// 返回各种错误的error对象
/// @param code code description
+ (NSError *)errorWithCode:(ImagePickerControllerErrorCode)code;


@end


NS_ASSUME_NONNULL_END
